home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
src
/
X11
/
wais
/
ftw
/
Makefile
< prev
next >
Wrap
Makefile
|
1995-07-26
|
14KB
|
511 lines
# Makefile generated by imake - do not edit!
# $XConsortium: imake.c,v 1.74 92/12/02 21:32:49 rws Exp $
# -------------------------------------------------------------------------
# Makefile generated from "Imake.tmpl" and </tmp/IIf.a003PK>
# $XConsortium: Imake.tmpl,v 1.160 92/11/18 14:11:25 rws Exp $
#
# Platform-specific parameters may be set in the appropriate <vendor>.cf
# configuration files. Site-specific parameters should be set in the file
# site.def. Full rebuilds are recommended if any parameters are changed.
#
# If your C preprocessor does not define any unique symbols, you will need
# to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
# "make World" the first time).
#
# -------------------------------------------------------------------------
# site-specific configuration parameters that need to come before
# the platform-specific parameters - edit site.def to change
# site: $XConsortium: site.def,v 1.2 91/07/30 20:26:44 rws Exp $
# -------------------------------------------------------------------------
# platform-specific configuration parameters - edit sco.cf to change
#
#
# Copyright (C) 1983-1991 The Santa Cruz Operation, Inc.
#
# The information in this file is provided for the exclusive use of the
# licensees of The Santa Cruz Operation, Inc. Such users have the right
# to use, modify, and incorporate this code into other products for
# purposes authorized by the license agreement provided they include this
# notice and the associated copyright notice with any such product. The
# information in this file is provided "AS IS" without warranty.
#
#
# platform: SCO sco.cf
# -------------------------------------------------------------------------
# site-specific configuration parameters that go after
# the platform-specific parameters - edit site.def to change
# site: $XConsortium: site.def,v 1.2 91/07/30 20:26:44 rws Exp $
SHELL = /bin/sh
TOP = ../.
CURRENT_DIR = ./ftw
AR = ar clq
ASM = as
BOOTSTRAPCFLAGS = -Dsco
CC = cc
AS = as
COMPRESS = compress
CPP = /lib/cpp $(STD_CPP_DEFINES)
PREPROCESSCMD = /lib/cpp -P $(ALLDEFINES) $(STD_CPP_DEFINES)
INSTALL = /usr/bin/X11/scoinst
LD = ld
LEX = lex
YACC = yacc
LINT = lint
LINTLIBFLAG = -o
LINTOPTS = -ax
LN = ln
MAKE = make
MV = mv
CP = cp
RM = rm -f
ASM_INCLUDES =
TROFF = psroff
MSMACROS = -ms
TBL = tbl
EQN = eqn
STD_INCLUDES =
STD_CPP_DEFINES = -Dsco -DSYSV
STD_DEFINES = -Dsco -DSYSV
EXTRA_LOAD_FLAGS =
EXTRA_LDOPTIONS =
EXTRA_LIBRARIES = -lsocket -lmalloc
TAGS = ctags
MFLAGS = -$(MAKEFLAGS)
PROTO_DEFINES =
INSTPGMFLAGS =
INSTBINFLAGS = -m 0755
INSTUIDFLAGS = -m 4755
INSTLIBFLAGS = -m 0644
INSTINCFLAGS = -m 0444
INSTMANFLAGS = -m 0444
INSTDATFLAGS = -m 0444
INSTKMEMFLAGS = -m 4755
ASMDEBUGFLAGS =
ASM_DEFINES =
CDEBUGFLAGS =
CCOPTIONS =
ALLINCLUDES = $(INCLUDES) $(EXTRA_INCLUDES) $(TOP_INCLUDES) $(STD_INCLUDES)
ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(EXTRA_DEFINES) $(PROTO_DEFINES) $(DEFINES)
ASMFLAGS = $(ASMDEBUGFLAGS) $(ASM_DEFINES) $(ASM_INCLUDES)
CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS) $(EXTRA_LDOPTIONS) $(LOCAL_LDFLAGS)
LDCOMBINEFLAGS = -X -r
DEPENDFLAGS =
MACROFILE = sco.cf
RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut
IMAKE_DEFINES =
IRULESRC = $(CONFIGDIR)
IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES)
ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/Imake.rules \
$(IRULESRC)/Project.tmpl $(IRULESRC)/site.def \
$(IRULESRC)/$(MACROFILE) \
$(EXTRA_ICONFIGFILES)
# -------------------------------------------------------------------------
# X Window System Build Parameters
# $XConsortium: Project.tmpl,v 1.157 93/06/24 10:51:47 dpw Exp $
# -------------------------------------------------------------------------
# X Window System make variables; this need to be coordinated with rules
PATHSEP = /
USRLIBDIR = /usr/lib
SHLIBDIR = /usr/lib
BINDIR = /usr/bin/X11
INCROOT = /usr/include
BUILDINCROOT = $(TOP)
BUILDINCDIR = $(BUILDINCROOT)/X11
BUILDINCTOP = ..
INCDIR = $(INCROOT)/X11
ADMDIR = /usr/adm
LIBDIR = $(USRLIBDIR)/X11
CONFIGDIR = $(LIBDIR)/config
LINTLIBDIR = $(USRLIBDIR)/lint
FONTDIR = $(LIBDIR)/fonts
XINITDIR = $(LIBDIR)/xinit
XDMDIR = $(LIBDIR)/xdm
TWMDIR = $(LIBDIR)/twm
MANPATH = /usr/man
MANSOURCEPATH = $(MANPATH)/man
MANSUFFIX = n
LIBMANSUFFIX = 3
MANDIR = $(MANSOURCEPATH)$(MANSUFFIX)
LIBMANDIR = $(MANSOURCEPATH)$(LIBMANSUFFIX)
NLSDIR = $(LIBDIR)/nls
PEXAPIDIR = $(LIBDIR)/PEX
XAPPLOADDIR = $(LIBDIR)/app-defaults
FONTCFLAGS = -t
INSTAPPFLAGS = $(INSTDATFLAGS)
IMAKE = imake
DEPEND = makedepend
RGB = rgb
FONTC = bdftopcf
MKFONTDIR = mkfontdir
MKDIRHIER = /bin/sh $(BINDIR)/mkdirhier
CONFIGSRC = $(TOP)/config
DOCUTILSRC = $(TOP)/doc/util
CLIENTSRC = $(TOP)/clients
DEMOSRC = $(TOP)/demos
LIBSRC = $(TOP)/lib
FONTSRC = $(TOP)/fonts
INCLUDESRC = $(TOP)/X11
SERVERSRC = $(TOP)/server
UTILSRC = $(TOP)/util
SCRIPTSRC = $(UTILSRC)/scripts
EXAMPLESRC = $(TOP)/examples
CONTRIBSRC = $(TOP)/../contrib
DOCSRC = $(TOP)/doc
RGBSRC = $(TOP)/rgb
DEPENDSRC = $(UTILSRC)/makedepend
IMAKESRC = $(CONFIGSRC)
XAUTHSRC = $(LIBSRC)/Xau
XLIBSRC = $(LIBSRC)/X
XMUSRC = $(LIBSRC)/Xmu
TOOLKITSRC = $(LIBSRC)/Xt
AWIDGETSRC = $(LIBSRC)/Xaw
OLDXLIBSRC = $(LIBSRC)/oldX
XDMCPLIBSRC = $(LIBSRC)/Xdmcp
BDFTOPCFSRC = $(FONTSRC)/clients/bdftopcf
MKFONTDIRSRC = $(FONTSRC)/clients/mkfontdir
FSLIBSRC = $(FONTSRC)/lib/fs
FONTSERVERSRC = $(FONTSRC)/server
EXTENSIONSRC = $(TOP)/extensions
XILIBSRC = $(EXTENSIONSRC)/lib/xinput
XTESTLIBSRC = $(EXTENSIONSRC)/lib/xtest
PEXLIBSRC = $(EXTENSIONSRC)/lib/PEXlib
PHIGSLIBSRC = $(EXTENSIONSRC)/lib/PEX
DEPEXTENSIONLIB = $(USRLIBDIR)/libXext.a
EXTENSIONLIB = -lXext
DEPXLIB = $(DEPEXTENSIONLIB) $(USRLIBDIR)/libX11.a
XLIBONLY = -lX11
XLIB = $(EXTENSIONLIB) $(XLIBONLY) $(SCOMALLOC)
DEPXAUTHLIB = $(USRLIBDIR)/libXau.a
XAUTHLIB = -lXau
DEPXDMCPLIB = $(USRLIBDIR)/libXdmcp.a
XDMCPLIB = -lXdmcp
DEPXMULIB = $(USRLIBDIR)/libXmu.a
XMULIB = -lXmu
DEPOLDXLIB = $(USRLIBDIR)/liboldX.a
OLDXLIB = -loldX
DEPXTOOLLIB = $(USRLIBDIR)/libXt.a
XTOOLLIB = -lXt
DEPXAWLIB = $(USRLIBDIR)/libXaw.a
XAWLIB = -lXaw
DEPXILIB = $(USRLIBDIR)/libXi.a
XILIB = -lXi
DEPXTESTLIB = $(USRLIBDIR)/libXtst.a
XTESTLIB = -lXtst
DEPPEXLIB = $(USRLIBDIR)/libPEX5.a
PEXLIB = -lPEX5
DEPPHIGSLIB = $(USRLIBDIR)/libphigs.a
PHIGSLIB = -lphigs
DEPXBSDLIB = $(USRLIBDIR)/libXbsd.a
XBSDLIB = -lXbsd
LINTEXTENSIONLIB = $(LINTLIBDIR)/llib-lXext.ln
LINTXLIB = $(LINTLIBDIR)/llib-lX11.ln
LINTXMU = $(LINTLIBDIR)/llib-lXmu.ln
LINTXTOOL = $(LINTLIBDIR)/llib-lXt.ln
LINTXAW = $(LINTLIBDIR)/llib-lXaw.ln
LINTXI = $(LINTLIBDIR)/llib-lXi.ln
LINTPEX = $(LINTLIBDIR)/llib-lPEX5.ln
LINTPHIGS = $(LINTLIBDIR)/llib-lphigs.ln
#
# (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC.
# ALL RIGHTS RESERVED
#
#
# Motif Release 1.2
#
# $RCSfile: Motif.tmpl,v $ $Revision: 1.5.2.3 $ $Date: 1992/04/10 21:02:42 $
# #ifndef XmClientLibs
# #if UseSharedLibraries
# #define XmClientLibs $(XTXMLIB) $(XMEXTRA_LIBS) $(XLIB)
# #else
# #define XmClientLibs $(XMLIB) $(XTOOLLIB) $(XMEXTRA_LIBS) $(XLIB)
# #endif
# #endif
# #ifndef XmClientDepLibs
# #if UseSharedLibraries
# #define XmClientDepLibs $(DEPXTXMLIB) $(DEPXLIB) $(DEPXMEXTRA_LIBS)
# #else
# #define XmClientDepLibs $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXLIB) $(DEPXMEXTRA_LIBS)
# #endif
# #endif
XTOP = $(TOP)
MTOP = $(TOP)
XBUILDINCROOT = $(XTOP)
XBUILDINCDIR = $(XBUILDINCROOT)/X11
CLIENTSRC = $(XTOP)/clients
DEMOSRC = $(XTOP)/demos
LIBSRC = $(XTOP)/lib
FONTSRC = $(XTOP)/fonts
INCLUDESRC = $(XTOP)/X11
SERVERSRC = $(XTOP)/server
UTILSRC = $(XTOP)/util
EXAMPLESRC = $(XTOP)/examples
DOCSRC = $(XTOP)/doc
RGBSRC = $(XTOP)/rgb
EXTENSIONSRC = $(XTOP)/extensions
USRINCDIR = /usr/include
UIDDIR = $(LIBDIR)/uid
TESTSRC = $(MTOP)/tests
GENERALSRCLIB = $(TESTSRC)/General/lib
GENERALSRCBIN = $(TESTSRC)/General/bin
MANUALSRCLIB = $(TESTSRC)/Manual/lib
MANUALSRCBIN = $(TESTSRC)/Manual/bin
AUTOSRCLIB = $(TESTSRC)/Auto/lib
AUTOSRCBIN = $(TESTSRC)/Auto/bin
COMMONPP = $(GENERALSRCBIN)/Commonpp
GENRUN = $(GENERALSRCBIN)/Genrun
TESTCOMSRC = $(AUTOSRCLIB)/Common
MTOOLKITSRC = $(TOOLKITSRC)
MINCLUDESRC = $(MTOP)/X11
MLIBSRC = $(MTOP)/lib
MCLIENTSRC = $(MTOP)/clients
MDEMOSRC = $(MTOP)/demos
MWIDGETSRC = $(MLIBSRC)/Xm
MRESOURCESRC = $(MLIBSRC)/Mrm
UILSRC = $(MCLIENTSRC)/uil
UIL = uil
DEPUIL = $(BINDIR)/uil
DEPXMLIB =
XMLIB = -lXm
DEPXTXMLIB =
XTXMLIB = -lXtXm_s
XMEXTRA_LIBS = $(XMULIB)
DEPXMEXTRA_LIBS = $(DEPXMULIB)
DEPMRESOURCELIB =
MRESOURCELIB = -lMrm
DEPUILLIB =
UILLIB = -lUil
TESTCOMLIB = $(TESTCOMSRC)/libCommon.a
AUTOSCRIPTSRC = $(AUTOSRCLIB)/Script
AUTOSCRIPTLIB = $(AUTOSCRIPTSRC)/libScript.a
AUTOSYNTHSRC = $(AUTOSRCLIB)/Synth
AUTOSYNTHLIB = $(AUTOSYNTHSRC)/libSynth.a
AUTOCREATESRC = $(AUTOSRCLIB)/Create
AUTOCREATELIB = $(AUTOCREATESRC)/libCreate.a
AUTOVISUALSRC = $(AUTOSRCLIB)/Visual
AUTOVISUALLIB = $(AUTOVISUALSRC)/libVisual.a
AUTOEXTRALIBS = -ll -ly -lm
LINTMRESOURCE = $(MRESOURCESRC)/libMrm.a
LINTXMWIDGETLIB = $(MWIDGETSRC)/llib-l/Xm.ln
LINTXMTOOL = $(MTOOLKITSRC)/llib-lXt.ln
LINTUILLIB = $(UILSRC)/llib-lUil.ln
YACCFLAGS =
RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut *.Dat *.Scr
STD_DEFINES = -Dsco -DSYSV
# -------------------------------------------------------------------------
# Imake rules for building libraries, programs, scripts, and data files
# rules: $XConsortium: Imake.rules,v 1.129 92/05/29 17:01:19 rws Exp $
# -------------------------------------------------------------------------
# start of Imakefile
# @(#) Imakefile 10.2 93/09/18
#
# PD version of scandir/ftw/alphasort
#
# S001 14-Mar-1995 kamalm@sco.com
# - adjusted CFLAGS for SCO 5.0 build
# - tweaked to only build target libraries (for Mosaic), not utilities
#
# S000 18 Sep 1993 rr@sco.com
# placed under SCCS and turned into an Imakefile
#
# $Log: Makefile,v $
# Revision 5.1 1992/07/10 22:09:54 curtisg
# Distributed version
#
# Revision 1.9 92/04/03 12:58:38 morris
# made it work with gcc
#
# Revision 1.8 92/03/02 14:34:53 jonathan
# changed an errant rm to $(RM), per balze@think.com
#
# Revision 1.7 92/02/16 18:39:35 jonathan
# Added directives for anytostring
#
#
#
SHELL=/bin/sh
RM = /bin/rm -f
CC = cc
CFLAGS = -b elf -O -I../ir -I. -DSECURE_SERVER -DRELEVANCE_FEEDBACK -DUSG -DSYSV
LIBDIR = ../lib
BINDIR = ../bin
AR = ar
ARFLAGS = r
# on SGIs set this to true
RANLIB = true
EXTHDRS = /usr/include/stdio.h \
/usr/include/sys/stat.h \
/usr/include/sys/types.h
HDRS = pdftw.h
TRUNC = $(BINDIR)/trunc
ANY = $(BINDIR)/stringtoany
TOBJ = trunc.o
AOBJ = stringtoany.o
LIBRARY = $(LIBDIR)/libftw.a
OBJS = alphasort.o \
freedir.o \
ftw.o \
scandir.o
SRCS = alphasort.c \
freedir.c \
ftw.c \
scandir.c
TESTOBJS = ftwtest.o ftwtest scantest.o scantest
all:: $(LIBRARY) # $(TRUNC) $(ANY) # S001
$(LIBRARY):: $(OBJS)
-mkdir -p $(LIBDIR)
$(RM) -f $@
$(AR) $(ARFLAGS) $@ $(OBJS)
$(RANLIB) $(LIBRARY)
$(TRUNC):: $(TOBJ)
$(CC) -o $@ $(TOBJ)
$(ANY):: $(AOBJ)
$(CC) -o $@ $(AOBJ)
test:: ftwtest.o scantest.o
$(CC) $(CFLAGS) ftwtest.o $(LIBRARY) -o ftwtest
$(CC) $(CFLAGS) scantest.o $(LIBRARY) -o scantest
ftwtest /tmp
scantest /tmp
clean::
$(RM) *.o
$(RM) *~
$(RM) \#*\#
$(RM) .nfs* # NFS Lossage
$(RM) core
$(RM) $(OBJS) $(TOBJ) $(TESTOBJS) $(LIBRARY) $(TRUNC) $(ANY)
depend::
$(DEPEND) $(DEPENDFLAGS) -s "# DO NOT DELETE" -- $(ALLDEFINES) $(DEPEND_DEFINES) -- $(SRCS)
# -------------------------------------------------------------------------
# common rules for all Makefiles - do not edit
emptyrule::
clean::
$(RM_CMD) "#"*
Makefile::
-@if [ -f Makefile ]; then set -x; \
$(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
else exit 0; fi
$(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
tags::
$(TAGS) -w *.[ch]
$(TAGS) -xw *.[ch] > TAGS
# -------------------------------------------------------------------------
# empty rules for directories that do not have SUBDIRS - do not edit
install::
@echo "install in $(CURRENT_DIR) done"
install.man::
@echo "install.man in $(CURRENT_DIR) done"
Makefiles::
includes::
# -------------------------------------------------------------------------
# dependencies generated by makedepend
# DO NOT DELETE
alphasort.o: /usr/include/sys/types.h pdftw.h
ftw.o: /usr/include/stdio.h /usr/include/sys/types.h /usr/include/sys/stat.h
ftw.o: pdftw.h
scandir.o: /usr/include/sys/types.h /usr/include/stdio.h pdftw.h